<div class="aside-right fr">
  <div class="item">
    <h4>搜索</h4>
    <div class="search search-url">
      <form>
        <input type="text" class="keys keys-url" placeholder="输入关键字">
        <input type="button" class="btn" value="搜索">
      </form>
    </div>
  </div>
  <div class="item">
    <h4>随机推荐</h4>
    <ul class="recommend">

    </ul>
  </div>
  <div class="item">
    <h4>最新评价</h4>
    <ul class="comment">

    </ul>
  </div>
</div>


<!-- 推荐模板 -->
<script type="text/template" id="recommendTemplate">
  {{each recommendList}}
  <li>
    <a href="detail.html?id={{$value._id}}">
      <p class="title">{{$value.title}}</p>
      <p class="read">阅读({{$value.meta.views}})</p>
      <div class="pic">
        <img src="{{baseUrl}}{{$value.thumbnail}}" alt="">
      </div>
    </a>
  </li>
  {{/each}}
</script>

<!-- 评价模板 -->
<script type="text/template" id="commentTemplate">

  {{each commentList}}
    <li>
      <a href="javascript:;">
        <div class="avatar">
          <img src="{{baseUrl}}{{$value.author.avatar}}" alt="">
        </div>
        <div class="text">
          <p>
            <span>{{$value.author.nickName}}</span>
          {{handleDate($value.author.createTime)}} 说:
          </p>
          <p class="text-item">{{$value.content}}</p>
        </div>
      </a>
    </li>
    {{/each}}
</script>